#ifndef VTITLEBARWIDGET_H
#define VTITLEBARWIDGET_H

#include <QFrame>
#include <QMenu>
#include <QAction>

#include "VToolBar.h"

namespace Ui {
class VTitleBarWidget;
}

class VTitleBarWidget : public QFrame
{
    Q_OBJECT

public:
    explicit VTitleBarWidget(QWidget *parent = 0);
    ~VTitleBarWidget();

    QSize sizeHint() const { return minimumSizeHint(); }
    QSize minimumSizeHint() const;

    VToolBar* get_toolbar();

signals:
    void signal_close_clicked();
    void signal_dock_setting(bool w, bool h);

private slots:
    void on_btn_normal_clicked();
    void on_btn_close_clicked();

    void on_btn_expand_clicked();

private:
    Ui::VTitleBarWidget *ui;

    QMenu _menu;
    QAction _action_width;
    QAction _action_height;
};

#endif // VTITLEBARWIDGET_H
